<template>
  <div class="register-container">
    <div class="register-select" @click="jumpToRegister('advertiser')">
      广告主
    </div>
    <div class="register-select" @click="jumpToRegister('agency')">
      广告代理商
    </div>
  </div>
</template>
<script>
export default {
   name:"register",
   data(){
     return{

     }
   },
   methods:{
     jumpToRegister(type){
       this.$router.push({path:'/register',query:{type:type}})
     },
   }
 }
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .register-container{
    height: 200px;
    color: black;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .register-select{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
    height: 80%;
    border: 1px solid #ebedf2;
    border-radius: 5px;
    transition: all 0.2s ease-in;
  }
  .register-select:hover{
    background: #f7f7f7;
    -webkit-box-shadow: 0 0 30px rgba(0,0,0,0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    -webkit-transform: translate3d(0, 0px, -2px);
    transform: translate3d(0, 1px, -2px);
  }
  .register-select:hover h2 a{
    color: #00a2ff;
  }
</style>
